assume cs:code
data segment
        db 'Welcome to masm!'
data ends

code segment
start:  mov ax, 0B800H
        mov ds, ax

        mov ax, data
        mov es, ax
        
        mov cx, 16
        mov si, 0
        mov di, 1600
s:      mov al, es:[si]
        mov ah, 0
        mov ds:[di], al
        mov ds:[di + 160], al
        mov ds:[di + 320], al
        mov byte ptr ds:[di + 1], 02H
        mov byte ptr ds:[di + 160 + 1], 42H
        mov byte ptr ds:[di + 320 + 1], 8AH
        inc si
        add di, 2
        loop s
	
        mov ax, 4c00h
        int 21h
code ends
end start

         